package com.tang.thepath.util;

public class LevelUtil {

    public static final String ROLE0 = "员工";
    public static final String ROLE1 = "领导";
    public static final String ROLE2 = "经理";
    public static final String LEVEL0 = "销售";
    public static final String LEVEL1 = "售后";
    public static final String LEVEL2 = "管理";


    public static String getRoleText(int role){
        if(role == 0){
            return ROLE0;
        }
        if(role == 1){
            return ROLE1;
        }
        if(role == 2){
            return ROLE2;
        }
        return "";
    }

    public static String getLevelText(int level){
        if(level == 0){
            return LEVEL0;
        }
        if(level == 1){
            return LEVEL1;
        }
        if(level == 2){
            return LEVEL2;
        }
        return "";
    }
}
